const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  // 站点名字
  chainWebpack: (config) => {
    config.plugin("html").tap((args) => {
      args[0].title = "文创商城";
      return args;
    });
  },
  // 配置跨域转发
  devServer: {
    port: 9090,
    proxy: {
      v1: {
        target: "http://129.28.159.96:7001", // API 服务器地址
      },
    },
  },
});
